use std::iter::repeat;

#[test]
pub fn zip_test() {
    let v: Vec<_> = (0..).zip("ABCD".chars()).collect();
    println!("{:?}", v);
    v.iter().for_each(|t| println!("{}-{}", t.0, t.1));

    let endings = ["once", "twice", "chicken soup with rice"];
    let rhyme: Vec<_> = repeat("going")
        .zip(endings).collect();
    println!("{:?}", rhyme);
}